functioning version for simple matrix

removed bugs to work with basic 2x2 invertible matrix:
A   =  2   3
         2   2

Ainv=  -1   1.5
            1   -1