moving data from arrays to vectors; from structs to cuda structs