Get a chunk of an array based on the total number of chunks and current index
github.com/jamiebuilds/chunkd
jamiebuilds/chunkd