create kmp.cpp