Add binary search code
Modify binary search