basic statistical functions in golang