Moving Geometric Average

The Moving Geometric average which earlier used to return 1 always has
been modified..