Added some extra features for stacks.

Implemented SetOfStacks where if a stack fills up, a new one is created.