Update stack.hpp