Bit vector implementation