Memoize size of QuantileDigest and Node classes to avoid walking their structure every time