Heap class.