made encode more space efficient. It now takes constant space for linear files
commented encode
Merge branch 'master' of https://github.com/shiyingzheng/CS241_hw9