changed private __ to _
wrote binarySearch