iterating through the rows of a sparse matrix