Update and rename stack.cpp to stack.h