Implementing Radix Sort in SML