project 5 for cs 2450 palindrome