using cuda to compute cube of a vector