Implementations of the dynamic programming algorithms for setting margins in paragraphs. One version does this in an iterative, bottom-up way and the other does in a recursive, top-down fashion. Both are implemented in C++