Use Long instead of Int for the counter in histogram

Histogram class uses a Map[Double,Int] map to count the number of instances in the bin. The counter will overflow when it's running on  a large dataset. Int type should be replaced with Long type.