docs: public CompactDoublesSketch compact(final WritableMemory dstMem) {
      if (dstMem == null) {
        return HeapCompactDoublesSketch.createFromUpdateSketch(this);
      }
      return DirectCompactDoublesSketch.createFromUpdateSketch(this, dstMem);
    }