a bit array/vector/deque class in C++