Optimize the Utils.stdDev function
Optimize the Utils.stdDev function

This patch optimizes the stdDev function in two respects:
  - first, we don't do sum . map which builds an intermediate list, but
	instead use a fold over the list to build incrementally the sum;
	this should reduce both the time and space characteristics, as we
	have fewer objects created
  - second, we move from “a ^ 2” to “a * a” as the latter has a much
	simpler implementation and thus a higher performance

Since the ‘square’ function is obsoleted by the above the patch also
removes it.

leshchevds/ganeti,andir/ganeti,yiannist/ganeti,ganeti-github-testing/ganeti-test-1,andir/ganeti,mbakke/ganeti,bitemyapp/ganeti,grnet/snf-ganeti,leshchevds/ganeti,apyrgio/snf-ganeti,yiannist/ganeti,mbakke/ganeti,ganeti/ganeti,grnet/snf-ganeti,apyrgio/ganeti,apyrgio/snf-ganeti,leshchevds/ganeti,bitemyapp/ganeti,ganeti-github-testing/ganeti-test-1,onponomarev/ganeti,yiannist/ganeti,dimara/ganeti,ganeti/ganeti,dimara/ganeti,andir/ganeti,apyrgio/ganeti,mbakke/ganeti,onponomarev/ganeti,ganeti/ganeti