updated the position weighted Lev Distance