added comments to merge.cpp