Check the speed of different methods of checking for a palindrome