Added two dynamic programming problems from TopCoder SRM 558 and SRM 596.