Strictly compute ngram models (closes #9)