An implementation of MaxHeap