C++ routines to manage stack using singly linked list.