cumSum takes as argument a matrix A.
cumSum returns the matrix whose columns are the cumulated sum of the
elements of the corresponding column of the matrix A.
Input :
Output :
since the cumulated sum are : 1, 1+3=4, 1+3+5=9 and 2, 2+4=6, 2+4+6=12.