Resursion Traversal of trees