PCMTreeNodeTimes function

Calculate the time from the root to each node of the tree