public E delMin() {
        final E returnValue = (E) heap.get(0);
        heapSize--;
        heap.set(0, heap.get(heapSize));
        heap.delete(heapSize);
        heapify(0);
        return returnValue;
    }