Checking also if any standard deviation equals 0.
Redefining constants to set the amount of buckets in the histogram.