encode partially debugged
Merge branch 'master' of https://github.com/shiyingzheng/CS241_hw9