Z-Function impl
styled KMP