Heavily updated the range_tree.c and range_tree.h