stack-using linked list modified
stack without memcpy modified