updated Heap and HeapDemo.java