Add solution for kmp-fp