a buggy kmp algorithm
kmp algorithm