g.stats function

Calculates likelihood-ratio G-statistic on contingency table