scale_minmax function

Scale a vector to the range [0, 1]