CS373: new segmented crosstrack error solution