faster binarySearch