impl IndexOfEngine
optimize IndexOfEngine.  update results.
Engines for StringSearch 2: http://johannburkard.de/software/stringsearch/
aho-corasick method engine