Added code for geometric mean.