use calloc() to initialize histogram data
optimize a bit and use float
increase histogram size