Node Class for Stacks and Queues