activated heapsort