Update median.cpp