speed-up: replaced jaro distance implementation