Added a loop to run the algorithm multiple times and report mean run time