kmp

Knuth-Morris-Pratt string searching algorithm.