lab01: greedy algorithm now uses qsort