Update largestDistance_ij