nearest neighbor edits