Create edit-distance