Implementation of PCA, PCA whitening and ZCA whitening in 2D