Create stack.cpp

Add missing "stack.cpp" -- grabbed from 1.1.1 release.