fixed addFlight function so that it adds new flights in numerical order