added kmp refined dfa construction process