Элемент 'knuth-morris-pratt algorithm'