Added a function to make an array of bits out of an array of values.