sparsematrix template and sample file