add EditDistance.