THE THEORY OF CANONICAL CORRELATION ANALYSIS IN ECOLOGY