Two QR algorithms