add QR decomposition