Update rec_stack.cpp