bitvec in c and c++ implemented