Performance optimisations to radix sorter