stack with singly linked list implementation, supports iteration like foreach as well.