basic bit_vector tree implementation