Update DistanceCalculator.java