Added method compressLog in model which to be used for compressed log
parts which are composed into single units with respect to undos and
redos.