Sparse matrix class and linear solvers.