Rewrite matrix filling to use our own SparseMatrix struct
Merge pull request #5 from mitya57/master

Do not snprintf() into one-byte string
Merge pull request #4 from mitya57/rewrite-matrix-filling

Rewrite matrix filling to use our own SparseMatrix struct