Removed usage of SparseMatrix