Draft (tested) of mrs and dendrogram for batch paired intersection