adding heapSort