Update Distance.java
Merge pull request #3 from sthaujwal/patch-5

Thanks for resubmission.