Added queues, stacks. Some bugfixes