QR solve