Single linkage clustering