adding binary search