added UCB algorithm