Getting to know vectorize and guvectorize functions.Combining existing functions to minimize data transfer between device and host