Dynamic programming and its applications (Academic Press, 1978)