Added Merge function to CHexeDocument