Store history of stack operations