Computes how many long blocks are needed to store values values of size bitsPerValue.
values
bitsPerValue