2D DP and Prefix DP - Preparation to IOI Part 3