typo in qr decomposition fixed