non-recursive aho-corasick