Matrix inversion ready and tested.