added DP text from USACO