insert function

Insert values into a vector