finish the implement of bitree