cosmo nfold partitioner hdr

function partitions = cosmo_nfold_partitioner(chunks)