fixed utils.G, now utils.G_goodness_of_fit; pointed functions to use this instead of G_independence when corresponding.
added perfo analysis