It doesn't seem to handle them like I would have thought
You need to tell us what your expectations were, and how what you observed differs from that.
In my array I have binary "data[](0,0,0,0....1,1,1,1) counting up
That data is in decimal, and doesn't really count up.