Create Exercises1.cpp

define the median of a sequence of doubles