code: public static ArrayOfDoublesSketch wrap(final Memory mem, final long seed) {
      final SerializerDeserializer.SketchType sketchType = SerializerDeserializer.getSketchType(mem);
      if (sketchType == SerializerDeserializer.SketchType.ArrayOfDoublesQuickSelectSketch) {
        return new DirectArrayOfDoublesQuickSelectSketchR(mem, seed);
      }
      return new DirectArrayOfDoublesCompactSketch(mem, seed);
    }
docs: Wrap the given Memory and seed as a ArrayOfDoublesSketch
  @param mem the given Memory
  @param seed the given seed
  @return an ArrayOfDoublesSketch