Added Manacher algorithm to Template. Test solved TOJ1297.