Statistics: Some simple funtions implemented, still missing comments