updated XMaxHeap with examples