add phylo.diversity function