Add inplace_merge