Why is quicksort faster than heapsort? And how to make them faster?