Added SparseMatrix.prototype.dim()