quicksort, lists of any type