add function create_vector(minx, maxx, count_elements)