fixed bugs, printArray & added test cases
Merge branch 'master' of https://github.com/ihuangda/hw