small optimization in sampling
use buffer. less garbage
better DocIter api
Merge pull request #14 from yingjieMiao/lda

misc optimization and clean up