recording the times and finding the medians of three runs
changed the number of runs to hard-coded 3 since the median method assumes that