Small Class to build ngrams