Update HeapArray.java