The multi-arm bandit problem