add tests for Matrix2.solve, Matrix3.solve2 and Matrix3.solve and fixed the solve functions.