Algorithm For Stack Implementation Using Nodes