updated tests. also added better description of z-algorithm. can be found in folder Docs as file Z algorithm.odt