Changed name of MaxArrayHeap to MaxHeap and made the class generic.