private double testBinaryHeapInserts(int[] inserts) {
        System.out.print("Testing BinaryHeap with " + inserts.length + " inserts... ");

        long[] times = new long[20];
        long startTime;
        long endTime;

        for (int i = 0; i < 20; i++) {
            binaryHeap = new BinaryHeap();
            startTime = System.currentTimeMillis();
            for (int j = 0; j < inserts.length; j++) {
                binaryHeap.insert(inserts[j]);
            }
            endTime = System.currentTimeMillis();
            times[i] = endTime - startTime;
        }

        double returnValue = 0;
        for (int i = 0; i < times.length; i++) {
            returnValue += times[i];
        }
        return returnValue / 20.0;
    }