Add a DistanceFields utility class.