Add `mean` function to average out numbers

Accepts stdin and caluclates the mean.