Splits the data into chunks of given length. The last chunk may be shorter.
A list of chunks.
The maximum size of a chunk.