[DONE]kmp; [IMPL]AC automaton