rewrite leetcode search insert position