stack realised by using linked list