Debugged indexing error in cross-patch merging. Now it runs to completion. Next: validate the results.