Binary Search using 2 vars