comparing the performance of binsearch() and binsearch2()