Made sure SparseMatrix uses ruby's matrix class