check aho-corasick's trie structure