Created a Aho-Corasick tree to perform word detection.