Knutt-Morris-Pratt algorithm implemented