add block swap algorithm and test script.
Merge branch 'master' of https://github.com/hongwoolee/ProgrammingPearl