code is functional as long as no pop from empty stack. removed size() functionality since linked list does not support size
implemented a temporary fix for size() using a member variable. also implemented a destructor that will avoid memory leaks by removing all elements left in the list and calling delete list