Added #2 median() function