Rewrite of Ukkonen's algorithm to fix several bugs.
Suffix links and unspeeded up insertion working okay.