Adapted bucketsort to the new interface of quicksort_impl
Further simplification of quicksort.