Cythonized lattice and ngram model.