Added a vector version of the linspace function, like the construct_range function.