leetcode 005:manacher, 029-030