Added a CSR/CSC matrix format, which passes tests. Added factory methods for matrices