Added first function: mean

Signed-off-by: Matthias Kümmerer <matthias@matthias-k.org>