CollapseNode function

Collapse nodes on a phylogenetic tree