Added base class SparseSolver for solvers, and corresponding tests.