Finalize radixsort
Switch to segmentedsort for good performance