altered display of stacks and queues from arrays