By any chance did you do following:
Do the full QR factorization of the two matrices. Using the third column from each 'Q' matrix, build a new matrix, call it Q'. It is composed of the normals to the planes described by the original two matrices. Do a full QR of Q'. The new QR has a third...