histograms calculation - tests
jakies male zmiany