invert_vec function

Swap vector names for values