Fixed histogram

I realized I was using a awful log-scale algorithm. Fixed it.