CostFunction classes rewrite to use the new API (package broken)
Rewrite Matrix module (package still broken)
Add test for lapjv module
Solver classes rewrite

All tests pass now. I wait for you approbal before I merge it.