stack with memcpy done
Growable stack without memcpy