Optimum Path Planning for an Impaired Aircraft