add similarity and cluster