distances a<------->b