3x3 invert, inlining