update WordBreakII with DP