Modifications on the ChangeMatrix operation, moving of a piece of code