Add search piece of Knuth Morris Pratt implementation.