Scale a vector such that the sum is length vector

scale_to_n(x)