Change how histogram is initialized

Now the size is always a power of two between 256 and 4096