Adding Heap related problems