Java implementation of Thompson sampling to solve the multi-armed bandit problem