rowBlockSum function

Take a matrix and sum blocks of rows