Matlab solves dynamic programming problem