parallel all pairs similarity computation