update ac-automaton & suffix-automaton