Stanford CS106B HW2 part B - Ngrams