This function is used to chunk a vector into bins. It is primarily used to divide jobs sent to a certain number of parallel clusters.
chunkV(V, num_chunks)
The vector to be divided into chunks
The number of chunks in which to bin the vector.
This function returns a list of length num_chunks. Each element in the list contains the elements of the vector that were assigned to that bin.