Create 3x3 matrix inverse function.