Create inversematrix