dictionary matching based on aho corasick algorithm