added finished heapsort