Binary Search Using Lambda

As an aside, I would be warry of building functions that return array
indices, or -1 if they fail. In ruby, -1 is a valid array index,
referring to the last element in the array. Might be better to return
nil to avoid later mistakes and confusion.