add new parts of aho-corasick algorithm