make a funtion for Lda(not finish,lack of Eigen function)