Fix bug in Singlethreaded LDA
modified based on comments
Merge pull request #164 from lvnair/ldabug

Fixed bug in Singlethreaded LDA