Bug fixes to profiler. MinHeap is not working.