aho-corasick, matrix