bsearch(x,var) Written by Aroh Barjatya Binary search for values specified in vector 'var' within data vector 'x' The data has to be pre-sorted in ascending or decending order There is no way to predict how the function will behave if there are multiple numbers with same value. returns the index values of the searched numbers