Rewrite matrix filling to use our own SparseMatrix struct
Merge pull request #4 from mitya57/rewrite-matrix-filling

Rewrite matrix filling to use our own SparseMatrix struct