Searching in edit_distance