Chi2Metric for clustering

This class is needed for data clustering (in preparation to PhoQ app)