Add mean and var across dimensions