Changing stack behaviour and API slightly
Adding map and foreach to queue
Updating doc for Stack and queue.