run_experiment function

Run an experiment using Thompson Sampling.