the solution of search insert position