Create minDistance.java