Update merge_inplace.cpp