QR for non-square matrices