Kmp algorithm

shape