added ngram library (not yet tested)