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