Fix out-of-bounds bug.
Manacher's algorithm: it works!