implemented reversing a list
implemented palindrome check using built-in
palindrome using halves