insert M into N such that M start at bit j and ends at bit i