c_ListofMatrixRows function

Convert a matrix into list of row vectors