loop_body now returns a hash that has: found_knot, segment, new_xyz, link2eetraj.