Algorithm For Stack Using Linked List