Add functions to manipulate vectors