Avoid use of node.h and implemented independently in stack and queue. More eficient this way