rescale_values function

Rescale a numerical vector