Knuthmorrispratt Algorithm Example