int maxBucket() {
        int max = 0;
        for (int i = 0; i < buckets(); i++) {
            Bucket bucket = new Bucket(i);
            if (bucket.value > max) {
                max = (int)bucket.value;
            }
        }
        return max;
    }