Wrote sparse matrix factory methods
Reconciled tests to new matrix API