Update Distance.java

Sorry ! i saw few more errors on previous implementation...