implemented pruneskipgrams