// We don't need m anymore.
m.destroy();
m = null;
// build dendrogram
BasicResult result = null;
// Build clusters identified by their target object
int minc = minclusters != null ? minclusters : distQuery.getRelation().size();
result = extractClusters(distQuery.getRelation().getDBIDs(), pi, lambda, minc);
result.addChildResult(new MaterializedRelation<DBID>("SLINK pi", "slink-order", TypeUtil.DBID, pi, processedIDs));
result.addChildResult(new MaterializedRelation<D>("SLINK lambda", "slink-order", new SimpleTypeInformation<D>(distCls), lambda, processedIDs));
result.addChildResult(new OrderingFromDataStore<D>("SLINK order", "slink-order", processedIDs, lambda));
return result;
}