solve search_insert_position with binarysearch