KMP substring search algorythm