Changed SparseMatrix structure.