Redirecting to Knuth–Morris–Pratt algorithm