Upper confidence bounds applied to trees