Added DistanceCalculator.within(from,to,dist) to avoid Math.sqrt in Euclidean space