edit-distance wip