Fix a bug reording the rows in the CCA A and B matrices.