LIFO stack using a linked list