Implement Matrix with inversion by Gauss Jordan partial pivoting.

Working and tested on several matrices
Corrected and tested as well in python