Aho–Corasick string matching algorithm implementation in C for fun.