patched Linalg3x3 (thanks alf)