modify module kmp : fix bug for the empty pattern