correct version of radix sort