bit vector sort optimize.