refactored XPriorityQueue class to XMaxHeap and added a new XMinHeap class