A new DistanceTree class with simple tests