Dynamic Programming over Submasks (Submask DP) - Preparation to IOI Part 5