add code in chapter2
Merge branch 'master' of github.com:lyuka/data_structure_and_algorithm_using_python