implement radix and quicksort