QR Least Squares Resolution