New Models qnd Algorithms for Bandits and Markets