segmented bandit