add LDA and PCA code