add solution for search insert position in a sorted array