Sparse matrix printing