A Novel Confidence-Based Algorithm for Structured Bandits