Forked AHO-CORASICK algorithm from raymanrt