Implement NGramModel and additive smoothing.