Updated BinarySearch()