begin binary search