Edit Distance update