Adaptation of LDA and PCA methods
Fixed indexes and other problems