Rewrite homegrown CCA to use its own QR implementation.