Copy array into vector