added a rowsums method to the MatrixUtils class