TSTree_traverse implementation
Merge