binarySearch is completed