Program to find an element using binary search