LDA and parallel LDA algorithm for MLP