Add histogram, mean, and median calculations