Wildcard_Matching DP opt