fix Int overflow exception
Merge pull request #37 from yingjieMiao/lda

fix Int overflow exception