Merges bits under mask.
Elemental function
If both I and J are of type INTEGER they must have the same kind type parameter. I and J must not both be boz-literal CONSTANT.
Same as I if I is of type integer. Otherwise, same as J.
If any argument is a boz-literal constant, it is first converted to the type and kind type parameter of the result. The result has the value of IOR (IAND (I, MASK),IAND (J, NOT (MASK))).
MERGE_BITS (5, 10, 41) has the result 3.