calculateNgrams to create_ngrams from assignment 3