Added foundation classes and LDA implementation.
Changed inner loop of Gibbs LDA.