Make Tree a Foldable instance