changed stacks and queues to their own datatype to interface with visualizer