Northwest, pilots reach deal aimed at reducing cancellations