Finished Unigram and Bigram generation and perplexity evaluation methods.