Adding a custom qr algorithm