testing sorts (heapsort)