Optimal Growth III: The Endogenous Grid Method