added function to compute mean and variance of normal mixture
merged conflicts