Code from kernel-methods to compute Kernel PCA and Kernel PLS
example