Add MaxHeap class.