calculate_cl function

Calculate clearance using an adaptive single-point method