DistToRootCalculator now updates object's tos distances.