update Heap