bitree implementation in c