Stack implemented (using linked lists).