Implementations of basic statistical functions in Haskell