UCB1 multi-armed bandit implementation for pivotapp.io