Implemented UNDO and REDO of Zr Zc Sr Sc commands