Finishing QR decomposition