Seol mar théacs é seo: Dynamic programming and modern control theory