fully implement TProfile binning