rescale function

Rescale numeric vector to have specified minimum and maximum.