Implemented SparseMatrix