inverse matrix tested & commented