Update ex_kmp.cpp