Primitive and modern swimmers solve the challenges of turning similarly to achieve high maneuverability