Update MinDistance.java