Creating the MaxHeap class