Use getNthBit in BinaryRadixSort.