Implement a serial version of radix sort.