changed back to functions calculating the variance even when ES=0
added function for sampling process with unequal sample sizes