n-gram iterators