program to search the element using binary search