Minor bug fix
Merge branch 'master' of https://github.com/shiyingzheng/shiying_ben_hw6

Conflicts:
	format.c
Added comments on algorithm
Merge branch 'master' of https://github.com/shiyingzheng/shiying_ben_hw6

Conflicts:
	format.c