Working jaro-winkler distance algorithm.