Made DistToRootCalculator stateless and removed AddFromChanged.