Two-level histograms for dealing with outliers and heavy tail distributions