added a new implementation of validating a palindrome
split helper functions into a separate file
updated README