Failure function now set to p-period.

Makes it easier to compress.
Added new test.

This test sees the pattern period end.
Deterministic algorithm now extends.
Predecessor table is now compressed.