classical DP, edit distance
Merge branch 'master' of https://github.com/python27/Data-Structure---Algorithm