getting historical minimum, per segment + month
counting refactored to method
segmentation unittest