Function to take a byte array and split into chunks of a given size
The byte array to chunk
The size of each chunk
An array of byte arrays of a specified size
Function to take a byte array and split into chunks of a given size