understanding more about manacher algorithm