adds qr factorization with givens rotations