testing sparse matrix