Changed maxheap into a generic maxheap