Implement matrix inverse using gauss jordan elimination