Manacher's Algorithm,etc