node,queue,stack impl