still need to implement traversal to find palindrome