edited splitAndMerge to print out some useful info that should help when figuring out how to make it work