program to search an element using binary search