added addLast method
stack uses linked list internally