Binary Search Advance function updated.