added binary search into main