Calculate unique, persistent IDs for each sample in the tree.