updated averages algorithm (variance broken)

VOL needs to be a long int