Merging now correct. Further testing is required.

Added vertical merger after accidentally debugging horizontal merger.