Some refactoring and plot for batch intersect pair. Still needs some testing