geary function

Compute Geary's C