Fixes #3, Added a function median() to mm.c to calculate the median.