Store bits in array