Bit vector encoding in phase 2.