add parallel mean and variance
all-in-one version test passed
remove row-wise APIs and refine code
remove useless APIs