Updated Binary Search