[experiment] added code for many-many splitting and merging.
[experiment] minor changes for batch processing.