Upper Bound Using Binary Search Algorithm And Its Complexity