Got rid of some compiler warnings due to unused variables
Work done in sparse matrix product is now delegated to helper subroutines for different row/column-major orderings