min_stack changed to stack instead of linked list. Works fine now.