minor improvements: added p-value as homogeneous statistic + squeezed result of compute_statistic_threshold