A new algorithm improves flight safety and reduce delays