create Edit Distance