Add joining of clusters that match distance criterion.
Checkpoint commit. Succeeds on all but one of the test images.