Data structures · Stacks

A Stack class

A list can hold a stack either way round, and the end you call the top decides how long a million pushes take.