implement Select(i) in bitvector.cpp; add a test for it