Added code to run multiple iterations of a test and compute mean and median for the output running times