README Generic implementation of Z-Algorithm. This article offers an excellent explanation of the algorithm.