added simple undo/redo for hashmap..needs refactoring and tests