Radix sort improvements

Fixes #136