Fixed #2 Add a function, mean(), to mm.c to calculate the mean