Some basic statistical functions for Elixir