treeDist: get the distance between each leaf