add binary search ruby code