A Branching Process Analysis of the Stack Algorithm for Variable Channel Conditions