btree implementation in c