Variance of algorithms