bitree implementation
bitree implementation