moments function

Numerical estimation of moments