Added comments to palindrome.cpp