add-in quicksort implementation