UndoManager struct

Undo manager.