implemented stack using linked list