Stacks and Queues
Martingale system