finish radix sort algorithm