reverse vectorization to point_distance() because benchmarking shows old code is actually faster