functions:FOLD

example

 Suppose that X=[1;2;3;4;5;6;7;8;9;10;11;12]

 function               result
 -----------------------------------
 FOLD(X,3)              1  4  7 10
                        2  5  8 11
                        3  6  9 12

 FOLD(X,4)              1  5  9
                        2  6 10
                        3  7 11
                        4  8 12