+ Backport Array#bsearch from Ruby 2.0.