Example for heapsort