scaleVector:
Scale the values of a vector to fit with predetermined size
Description
This function will resize the values of the vector so that
they fit in a pre-defined range. The number of elements will
changed, but the general distribution will remain the same.