stacks, queues, subsets of sum zero