Sparse matrix manage class