Adding the query processor and class to store and compare Ngrams.