Added median calculation to timer_data

Added median calculation to timer_data and associated test cases