optimize sorted insertion by using the infimum instead of the supremum

stable return value for binary search when there are duplicates in the array

(0) -1000 -300 -100 -30 -10 -2 +2 +10 +30 +100 tip

mercurial