Learning Algorithms for Stochastic Dynamic Pricing and Inventory Control.