http://oj.leetcode.com/problems/search-insert-position/