A iterative randomized binary search function . It returns location of x in given array arr [ l . . r ] if present , otherwise - 1
int randomizedBinarySearch ( int arr [ ] , int l , int r , int x ) { while ( l <= r ) {