Fix my kmp algo

Signed-off-by: Bao Haojun <baohaojun@gmail.com>