This fixes #3, added a function, median() to mm.c