implement strstr using KMP