AffinityPropagation: save memory by reusing tmp.