Compute dates of leaves and internal nodes for a given tree
allDates(phy)
phy
Tree
Dates of leaves and internal nodes