Added lda function; Not working, still in debugging.