new post phylo tree algorithm