moved thompsonSampling
added upper confidence bound code for bandit optimization