implemented flexible general by cell estimator

Allow for L1 imbalance measurement and CEM estimator.

However, the number of bin requires update