結果 : explain use of prefix function in kmp string matching algorithm with an example