I have one array of zeros and ones in one row like this:
But I want to rearrange them to look like this, every 5 bits in one row: