Add binary search function.