Implemented AhoCorasick