update binarySearch