adds toString method in SparseMatrix.  Not yet tested