double the value stored in vector