Improved SparseMatrix's __getRow and added test