matrix decompostion, 3 method to solve lda