Implement inverse of 3x3 matrix