Dynamic programming : deterministic and stochastic models. - Bertsekas, Dimitri P.