Dynamic Programming matrix setup. Just started