Query: Added histogram class that splits statistical data into buckets.

Currently buckets are generated using an exponential formula. This
means that there is high resolution near zero, but it allows values
to be collected over a great range.

Only buckets are generated so far. Actual gathering of stats data
still needs to be implemented.