Implement the largestChildIndex(int currentIndex) function for a MaxHeap. Given an index for a value in the heap, it should return the index of the child that contains the largest value. If there are no children, return -1.
Implement the removeMax() function for a MaxHeap. This function should remove and return the maximum value from the heap while maintaining the max-heap property.