Applied new approach using function_types instead of member types to point-segment-distance strategies