myscale2 function

Rescale a vector with which minimum value 0 and maximum value 1