Add support for computing distances between points.