modify sparse matrix classes to follow the new MatrixBase