added solution to prob36, maybe better solution trick for knowing if the
binary representation will be a palindrome