Added algo for next palindrome