Rebuilding the identity matrix after every simulation.