Dynamic programming and stochastic control by 'Bertsekas' & Bertsekas