Update an improved binarySearch

/*an improved binarySearch:
If the target is found, return the index of the target in the array;
Or else, return the range that it falls at. (If the target is smaller than array[0], print out: (-1,0); if the target
is larger than array[array.length-1], print out: (array.length-1,array.length))
*/