Create KMP.c

I wrote this codes after I read the KMP .