This is a function to create an inverse matrix