binary search macro