BitVector based sorting implementation.

This concept is admired from Programming Pearls, 1st column.