Additional space for heapArray if numElements > arraySize