new pseudo code, seems work fine. idea is about generate temp replement set.
add commits.
Merge branch 'master' of github.com:felixzhao/Beam_Search