MT version of DistanceToPointSet in progress