Binary Search Ruby