Added missing methods to matrix classes
Added non-zeros methods to vector classes
Fixed test cases and added new ones