Inverse matrix computation