Binary search implementations in Ruby.