Complete the code to inverse matrix