Ruby 2.3 #bsearch_index method (for usage with older Rubies) Straighforward and non-optimal implementation, just for compatiblity