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