Simplified the recursive solution for determining if a tree is symmetric.