Added the function

Added the function to do binary search for the first time.