added first draft of distance function that maps each clade to distance from root