Variations on the Triangle problem for DP training.

We have a recursive, top-down and bottom-up solution to show the differences.