Added median calculation to timer_data

Added median calculation to timer_data and associated test cases
Changed test case to ensure sorting

Changed the test data in timers_multiple_times_even so make sure the
metrics are sorted before getting the median value. If the data was not
sorted, the median value would be 300 instead of 250.
Merge pull request #277 from dynmeth/master

Added median calculation to timer_data