Heap base class