replace sort in add_range with binary_insert