added NormalizedNGram class