Fixed bugs in geometric and harmonic means, added some tests.