add implementation for linkedlist stack