Copying data structures to GPU