Speed up vector initialization with Cuda
Merge branch 'cuda'