Update heap.cpp