public T peek() throws NoSuchElementException {
                T returnValue;
                try {
                        return heap.get(0).item;
                } catch (IndexOutOfBoundsException npe) {
                        throw new NoSuchElementException();
                }
        }