Vectors adding with shared memory