Fixed bug in unsmoothed unigram algorithm.