Use a vector of pairs to implement the section stack, not two