model_goodness_poly function

Computes the goodness of IRT model for all algorithms.