Implemented the split function that allows to split one single vector/list/array
into n chuncks to be elaborated in parallel.