updated the weighted Lev Distance