Wrote function to get earliest flights out from vector