finished palindrome.c + minor changes to hw3