Sketched out a rough cluster merging algorithm