Updating cluster statistics when merge/split and undo/redo.