Quicksort

The quicksort algorithm is now used instead of the inefficient bubble
sort.