add ahocorasick method