Stack implementation as linked list.