The multi-armed bandit problem