Adaptive Histogram Template Library