binary search/sort tree implement in C