Faster scheduling with quicksort

Use quicksort for all priority based job sorting, which improves performance
significantly with large job counts.
Remove vestigial functions

list_pop_top() and list_pop_bottom() functions removed.
Quicksort produces better results in almost all cases.