Updating stack.go, adding queue.go and examples.