update with pseudo code

update with pseudo code
Merge pull request #2 from morris821028/master

update with pseudo code