Add tensor rescaling

rescale the tensor each step after update, the rescaling factor is
saved by logorithm in H, instead of tracking Tval, tracking the energy
H now.