Histogram shouldn't melt computer. Fixes #117.

Still looks a bit rubbish, but better than before.