Update LDA and SLDA