@Override
    public void merge(NormalSketch other) {
        Preconditions.checkArgument(data.length == other.data.length,
                "Trying to merge sketch with one of different size. Expected %s, actual %s", data.length, other.data.length);
        for (int i = 0; i < data.length; i++) {
            data[i] = (byte) Math.max(data[i], other.data[i]);
        }
    }
@Test
    public void requireThatMergeDoesElementWiseMax() {
        NormalSketch s1 = new NormalSketch(2);
        setSketchValues(s1, 0, 1, 1, 3);
        NormalSketch s2 = new NormalSketch(2);
        setSketchValues(s2, 2, 1, 1, 0);
        s1.merge(s2);

        assertBucketEquals(s1, 0, 2);
        assertBucketEquals(s1, 1, 1);
        assertBucketEquals(s1, 2, 1);
        assertBucketEquals(s1, 3, 3);
    }