function to check whether all the bits in the given range of two numbers are complement of each other
function bitsAreComplement ( a , b , l , r ) { var xor_value = a ^ b ; return allBitsSetInTheGivenRange ( xor_value , l , r ) ; }