Task1: calculate n-grams in given text file