creating bit[N] for entropy calculation