update ThompsonSampling