bugfix: using LinearSamplingFunction with ndarray instead of Quantity causes problems
Add an accumulating histogram class