Cathay Pacific flies out of the red