Added mean for statistical functions

I haven't updated the dist file because my current instalation generates a completely different dist file, with hundreds of lines changes from the actual one. I don't think this is the wanted behaviour, so I'll let that for the future or for the main developer.

Mean has been tested similarly to max and min.