Correlated ππ and KK exchange in the baryon-baryon interaction