Given a pattern P[1..m], define the suffix-function such that is the length of the longest prefix of P that is also a suffix of x:
P = abaabc