calculating inverse matrix (A-1) by using unit matrix (I).