Update Stack using linked list