skeletal code for Jaro-Winkler distance function