Solving the MABP with UCB and Thompson sampling algorithms