string matching （version 2.1）

use the Dynamic programming to get the longest common subsequence
between targetStr and word