Brought in old radix sort code I had lying around