first commit -- unigram, bigram and trigram implemented