add naive all pairs similarity calculation