Efficient Algorithms for Large-scale Generalized Eigenvector Computation and Canonical Correlation Analysis