added data structures for stack and queue