changed graph and updated lda to always project data onto nUniCat-1 dimensional subspace