update_thompson function

Update linear Thompson Sampling model.