Implemented stack ADT using linked lists