determin if a integer is palindrome

better, cleaner algorithm