fix kernel trick, lda, kpca and started klda