Diff method for implementing undo stack of the recent user actions - A. L. Masjuk (Electronic modeling, 2017)