@Test
    public void insertAndDeleteTest(){
        long start = System.currentTimeMillis();
        for (int i = 0; i < 1000000; i++){
            heap.insert(i);
        }
        for (int i = 0; i < 1000000; i++){
            assertEquals(heap.extract_min().value, i);
        }
        long end = System.currentTimeMillis();
        System.out.println("Time spent adding and deleteting 1000000: " + (end-start*1.0) + "ms");
    }