thread safe sampling
toFloat
Merge pull request #13 from yingjieMiao/lda

thread safe sampling