added comment for heapSort