fixed #2 which is add a function, mean(), to mm.c to calculate the mean