Added Sorting based on Bitvector