Added class for sparse matrices