inverse matrix script