added an implementation of stack which internally uses a singly linked list