Inverse matrix implemented