quick sort. quicksort is faster than heapsort