Heap is optimized in places and keeps track of its swap operations.  Some other things...