first v of leveshtein distance.