public static int outp(int[] array,int low,int high,int key)
{
int mid=(high+low)/2;
if(low<=high)
{
if(array[mid]==key) return mid;
else if(array[mid]<key) return outp(array,mid+1,high,key);
else return outp(array,low,mid-1,key);
}
return -1;
}