stack implemented with linked list complete