search insert position && search for a range