Rewrite the cca demo script so we can generate rank-deficient data for testing.