starting 2-pass implementation of bit vector