Update EditDistance.java

Bug fix