Move thread-safety from QuantileDigest to Distribution