stack using linked list modified