Added histogram calculation tool.