Docstring for binarySearch