Moved MX::sparse, Matrix::sparse to base class, #983