update buildingaHeap.java class