adding manacher's algorithm