this condition happens when we don 't have any elements  in the first half from a[]  so we returning the last  element in b[] from the  first half.
if ( i == 0 ) : NEW_LINE INDENT median = b [ j - 1 ] NEW_LINE DEDENT