changes to HeapPage.java