Added the sparse matrix generator.