if it is performance critical  a single vector will have better cache locality  so may be faster i agree pair syntax is ugly both of these arrays are stacks  so i would indicate that in the name maybe something like mentrystack and mtypestack 