Add example of dynamic programming using tables