Update Z-Algorithm.cpp