added palindrome and reverse array list