Update binary_search.rb

Used the native Ruby index method to remove need for get_index implementation