algorithm: word-edit: adding code for finding word-edit distance