Advice on how to slice a dynamic array

In reply to szy0014:

Another thing that does not make sense is that data and hold_data are both 32-bit (WORD_SIZE) dynamic arrays, yet you appear to be trying to index a single WORD of the array by bit position.