check in heapSort